package ltd.newbee.mall.config.annotation;

import ltd.newbee.mall.advice.EncryptRequestBodyAdvice;
import ltd.newbee.mall.advice.EncryptResponseBodyAdvice;
import ltd.newbee.mall.config.RsaKey;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/***
 * 启用加密
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import({
        RsaKey.class,
        EncryptResponseBodyAdvice.class,
        EncryptRequestBodyAdvice.class})
public @interface EnableSecurity {
}
